Online documentation - WebsydianExpress v3.5 |
APIServer.AuthorizedEvents.AddRole
Field | Variable | ...as | Description |
---|---|---|---|
AuthorizedEventSurrogate | Input | Input | Uniquely identifies the authorized event you want to add the
role to
Mandatory. |
RoleSurrogate | Input | Input | Uniquely identifies the role you want to add.
Mandatory |
This API adds a role to the specified authorized event.
In this way, all sessions with the specified role will have access to the event.
If you do not have the unique identifications, you can obtain the AuthorizedEventSurrogate by calling AuthorizedEvent.GetEventBySiteName and the RoleSurrogate by calling Role.GetByName.
You can use this API together with AuthorizedEvents.CreateAuthorizedEvent to create an deployment function which auto generates the authorized events in the site you deploy your application to.
WSE0100 - Role not found
WSE0256 - Authorized event not found
WSE0258 - Event and role in different sites